﻿@model IEnumerable<JinianNet.JNCms.Models.Attachment>
<!DOCTYPE html>
<html>
<head>
    <title>文件上传 - @JinianNet.JNCms.Config.Site.Name</title>
    @JinianNet.Web.ResourceManager.Script.Render("Manage/Base")
    @JinianNet.Web.ResourceManager.Style.Render("Manage/Base")
</head>
<body>

    <table width="95%" align="center" border="0" cellspacing="0" cellpadding="0" class="biggrid">
        <tr>
            <th colspan="2" align="left">&nbsp;</th>
        </tr>
        @if (Model != null)
        {
            <tr>
                <td align="center" width="150" class="tm">上传结果</td>
                <td>
                    <ol>
                        @foreach (var item in Model)
                        {
                            <li>@( JinianNet.Common.Url.Concat(new string[] { "http://", JinianNet.JNCms.Config.Site.Host, JinianNet.JNCms.Config.Site.SiteDirectory, "Attachment", item.ID.ToString() })) 上传成功</li>
                        }
                    </ol>
                </td>
            </tr>
        }
        else
        {
            using (Html.BeginForm("UpLoad", "Attachment", FormMethod.Post, new { enctype = "multipart/form-data" }))
            {
            <tr>
                    <td align="center" width="150" class="tm">文件上传</td>
                    <td>

                        <input type="file" name="file" />
                        <input type="submit" value="文件上传" />

                    </td>
                    </tr>
            <tr>
                    <td align="center" width="150" class="tm">缩 略 图</td>
                    <td>
                        <input type="radio" name="MakeThumbnails" value="True" /> 是
                        <input type="radio" checked="checked" name="MakeThumbnails" value="False" /> 否
                    </td>
            </tr>
            }

            
        }
        <tr>
            <td align="center" colspan="2">
                <input type="button" value="返回上页" onclick="history.back()" /></td>
        </tr>
    </table>
</body>
</html>
